import styled from "styled-components"

export const HomeWrapper = styled.div`
  width: 960px;
  margin: 0 auto;
  overflow: hidden;
`
export const HomeLeft = styled.div`
  float: left;
  width: 625px;
  margin-left: 15px;
  padding-top: 30px;

  .banner-img {
    width: 625px;
    height: 270px;
  }

`
export const HomeRight = styled.div`
  width: 280px;
  float: right;
`
export const TopicWrapper = styled.div`
  overflow: hidden;
  padding: 20px 0 10px 0;
  margin-left: -18px;
  border-bottom: 1px solid #dcdcdc;
`
export const TopicItem = styled.div`
  float: left;
  height: 32px;
  line-height: 32px;
  margin-left: 19px;
  background: #f7f7f7;
  font-size: 14px;
  color: #000;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding-right: 18px;
  margin-bottom: 18px;

  .TopicImg {
    display: block;
    float: left;
    height: 32px;
    width: 32px;
    margin-right: 10px;
  }
`
export const ListItem = styled.div`
  overflow: hidden;
  padding: 21px 0;
  border-bottom: 1px solid #dcdcdc;

  .itemImg {
    display: block;
    width: 125px;
    height: 100px;
    float: right;
    border-radius: 10px;
  }

`
export const ListInfo = styled.div`
  width: 500px;
  float: left;

  .title {
    font-size: 18px;
    line-height: 27px;
    font-weight: bold;
    color: #333;
  }

  .content {
    font-size: 13px;
    line-height: 24px;
    color: #999;
  }
`

export const RecommendWrapper = styled.div`
  margin: 30px 0;
  width: 280px;
`
export const RecommendItem = styled.div`
  width: 280px;
  height: 50px;
  background-image: url(${(props) => props.imgUrl});
  background-size: contain;
`
export const WriterWrapper = styled.div`
  width: 280px;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
`
export const WriterItem = styled.div`
  margin-bottom: 15px;
  width: 100%;
  height: 46px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;

  .avator {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 10px;
  }

  .writerName {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
`
export const WriterName = styled.p`
  margin-top: 5px;
  font-size: 14px;
  color: #333;
`
export const WriterDesc = styled.p`
  margin-bottom: 10px;
  color: #969696;
  margin-top: 2px;
  font-size: 12px;
`

export const LoadMore = styled.div`
  width: 100%;
  height: 40px;
  line-height: 40px;
  margin: 30px 0;
  background: #a5a5a5;
  text-align: center;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
`
export const BackTop = styled.div`
  position: fixed;
  right: 100px;
  bottom: 100px;
  font-size: 10px;
  width: 100px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border: 1px solid #ccc;

`
